package com.lushu.chapitre1.net.services
{
	import com.lushu.chapitre1.data.vo.FarmModuleVO;
	import com.lushu.net.php.BaseRemotingService;
import com.sfdk.net.php.BaseRemotingService;

import flash.net.Responder;

	public class UserFarmService extends BaseRemotingService
	{
		private static var _instance : UserFarmService;
		
		public function UserFarmService()
		{
			super("userFarms");
			_instance = this;
		}
		
		public static function get instance(): UserFarmService
		{
			if(_instance == null)
				_instance = new UserFarmService();
			return _instance;
		}
		
		public static function getFarm(responder : Responder, userID : int) : void
		{
			instance.call("getFarm", responder, userID);
		}
		
		public static function addModule(responder : Responder, userID : int, farmModule : FarmModuleVO) : void
		{
			instance.call("addFarmModule", responder, userID, farmModule);
		}
	}
	
	
}